package com.car.controller;

import com.car.entity.Displacement;
import com.car.entity.Drivingrecordid;
import com.car.service.DisplacementService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/Dis")
public class DisplacementController   {
	@Autowired
	DisplacementService disService;
	
	@RequestMapping("/selByTypeId")
	public List<Displacement> selByTypeId(@RequestParam("carTypeId") String carTypeId){
		List<Displacement> list=disService.selectAll(carTypeId);
		return list;
	};
	
	
}